package com.boatAnchorAssistant.service.config;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/12/13 13:24
 */
@Data
@Configuration
public class FixedValueConfig implements InitializingBean {
    @Value("${fixedValue.areaId}")
    private Long areaId;
    @Value("${fixedValue.levelId}")
    private Long levelId;

    public static Long AREA_ID;
    public static Long LEVEL_ID;

    @Override
    public void afterPropertiesSet() throws Exception {
        AREA_ID = areaId;
        LEVEL_ID = levelId;
    }
}
